/*
 * Filename TestDataDetailClient.java 2022年03月22日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.core.api.feign;

import com.ehome.core.entity.Qry;
import com.ehome.poct.core.api.qry.CheckDataQry;
import com.ehome.poct.core.api.vo.checkdata.BldCheckDataVO;
import com.ehome.poct.core.api.vo.checkdata.TestDataDetailVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author wyc
 * @since 2022/03/22 10:56
 **/
@FeignClient(value = "${service.poct-core:}${service.suffix.poct-core:}", contextId = "data")
public interface CheckDataClient {
    @GetMapping("/jby/data/{id}")
    TestDataDetailVO getJbyById(@PathVariable("id") Long id);

    @GetMapping("/jby/data/")
    List<TestDataDetailVO> queryJby(@SpringQueryMap CheckDataQry qry);

    @GetMapping("/bld/data/{id}")
    BldCheckDataVO getBldById(@PathVariable("id") Long id);
}